package com.bilibili.movies.util;


import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result {
    private Integer code;
    private String msg;
    private Object data;
    public static Result suceess(Object obj){
        Result result=new Result(1,"null",obj);
        return result;
    }
    public static Result error(String str){
        return new Result(0,str,null);
    }
}